// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
import '../static/css/app.css'
import '../static/css/global.css'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// import 'bootstrap/dist/css/bootstrap.css'
// import 'bootstrap-vue/dist/bootstrap-vue.css'
// import Vuex from 'vuex'

import App from './App'
import router from './router'
import store from './store/store'


Vue.use(MintUI)
Vue.use(ElementUI)

Vue.config.productionTip = false
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App),
  components: {App},
  template: '<App/>',
  create () {

    // console.log($)
    // $(function () {
    //   document.querySelector('body').onload = function () {
    //     lx.setForbiddenPullRefresh({
    //       isForbid: 1,//设置本地应用是否禁止下拉刷新 0：不禁止 1：禁止 （默认值为0）
    //       success: function (res) {
    //         console.log('test1121212')
    //       },
    //       fail: function (res) {
    //         console.log('testfail11')
    //       }
    //     })
    //   }
    //   var obj = document.querySelector('body')
    //   obj.addEventListener('touchmove', function (event) {
    //     event.preventDefault()// 阻止浏览器默认事件，重要
    //   }, false)
    // })
  }
})
